How To Increase The Accuracy Of The State Of Charge Algorithms And The Lifetime Of Batteries